package uutalk.netcloud.talk.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by hujie on 2017/8/8.
 */
public class JoinSingleTalkRsp extends MqttBussinessBean implements Parcelable {

    public String group_id;
    public String user_id;
    public String user_name;
    public String receiver_id;
    public String receiver_name;


    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getReceiver_id() {
        return receiver_id;
    }

    public void setReceiver_id(String receiver_id) {
        this.receiver_id = receiver_id;
    }

    public String getReceiver_name() {
        return receiver_name;
    }

    public void setReceiver_name(String receiver_name) {
        this.receiver_name = receiver_name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public JoinSingleTalkRsp(){

    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.group_id);
        dest.writeString(this.user_id);
        dest.writeString(this.user_name);
        dest.writeString(this.receiver_id);
        dest.writeString(this.receiver_name);
        dest.writeString(this.from_type);
        dest.writeString(this.from_id);
        dest.writeString(this.to_type);
        dest.writeString(this.to_id);
        dest.writeString(this.cmd);
        dest.writeString(this.error_msg);
        dest.writeString(this.error_no);
    }

    protected JoinSingleTalkRsp(Parcel in) {
        this.group_id = in.readString();
        this.user_id = in.readString();
        this.user_name = in.readString();
        this.receiver_id = in.readString();
        this.receiver_name = in.readString();
        this.from_type = in.readString();
        this.from_id = in.readString();
        this.to_type = in.readString();
        this.to_id = in.readString();
        this.cmd = in.readString();
        this.error_msg = in.readString();
        this.error_no = in.readString();
    }

    public static final Parcelable.Creator<JoinSingleTalkRsp> CREATOR = new Parcelable.Creator<JoinSingleTalkRsp>() {
        @Override
        public JoinSingleTalkRsp createFromParcel(Parcel source) {
            return new JoinSingleTalkRsp(source);
        }

        @Override
        public JoinSingleTalkRsp[] newArray(int size) {
            return new JoinSingleTalkRsp[size];
        }
    };
}
